﻿using System.Windows.Controls;
using ProjectBilling.Application;

namespace ProjectBilling.UI.SL
{
    public partial class ProjectsView : UserControl
    {
        public ProjectsView()
        {
            InitializeComponent();
        }

        private void ComboBox_SelectionChanged(object sender, 
            SelectionChangedEventArgs e)
        {
            ((ProjectsViewModel) DataContext).SelectedValue
                = (int?)((ComboBox) sender).SelectedValue;
        }
    }
}
